xm-test: fix the ip allocation function
authorZhu Yanhai <zhu.yanhai@gmail.com>
Mon, 30 Sep 2013 08:12:10 +0000 (16:12 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 3 Oct 2013 12:43:23 +0000 (13:43 +0100)
commitc8f5eb4b8093ac6acc947a4df5779e69005d16c4
tree91d995be857ab9c56f333d879af32c3c6e571450
parentb685c64be7a8d870313c9a652a15eadf9f25f195
xm-test: fix the ip allocation function

__findFirstOctetIP() is expecting min and max available octets according to
its code, however the caller getFreeIP() gives it the min octet and (max -
min + 1), which is the length instead.

Signed-off-by: Zhu Yanhai <gaoyang.zyh@taobao.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xm-test/lib/XmTestLib/NetConfig.py